package com.mydiceplayer.models;

import java.util.ArrayList;
import java.util.List;

public class ModelVideoDir {
	private List<ModelVideo> videos; 
	private String name;
	private int numVideos;
	
	
	public boolean addVideos(ModelVideo video){
		if(videos == null){
			videos = new ArrayList<ModelVideo>();
		}
		videos.add(video);
		
		return true;
	}
	
	
	public List<ModelVideo> getVideos() {
		return videos;
	}
	public void setVideos(List<ModelVideo> videos) {
		this.videos = videos;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public int getNumVideos() {

		if(videos == null){
			numVideos = 0;
		}else{
			numVideos = videos.size();
		}
		
		return numVideos;
	}
}
